Scenario #2000: Create Self Debitor for Partner with Identical Contact Data

UseCase Create Self Debitor For Partner With Identical Contact Data => Debitor: D-3101100 - Michelle Matthieu

Properties

Required

Given

name value
partnerNumber P-31011
debitorNumberSuffix 00
billable true
vatBusiness false
vatReverseCharge false
defaultPrefix mim

Determine Partner-Person UUID

HTTP GET "/api/hs/office/partners/P-31011" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "7d1e5750-8a7a-46cd-8475-29a568d25ded", // Partner: P-31011 - Michelle Matthieu
  "partnerNumber" : "P-31011",
  "partnerRel" : {
    "uuid" : "c0f43b0d-472a-45b3-9f6b-969c728b683b",
    "anchor" : {
      "uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e", // Person: Hostsharing eG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Hostsharing eG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "holder" : {
      "uuid" : "53869a92-66f1-4e83-9850-80f2a708f39f", // personUuid
      "personType" : "NATURAL_PERSON",
      "tradeName" : null,
      "salutation" : null,
      "title" : null,
      "givenName" : "Michelle",
      "familyName" : "Matthieu-Zhang"
    },
    "type" : "PARTNER",
    "mark" : null,
    "contact" : {
      "uuid" : "8c06e07a-89e5-4b36-8049-09d785e2d47d", // Contact: Michelle Matthieu
      "caption" : "Michelle Matthieu",
      "postalAddress" : {
        "zipcode" : "22123",
        "country" : "Germany",
        "city" : "Hamburg",
        "street" : "An der Wandse 34",
        "name" : "Michelle Matthieu"
      },
      "emailAddresses" : {
        "main" : "michelle@matthieu.example.org"
      },
      "phoneNumbers" : {
        "mobile" : "+49 152 1234567"
      }
    }
  },
  "details" : {
    "uuid" : "18c9e468-87a8-4e62-b3d7-b59aa8973083",
    "registrationOffice" : null,
    "registrationNumber" : null,
    "birthName" : "Eichbaum",
    "birthPlace" : "Neustadt a.d.R.",
    "birthday" : "1951-03-25",
    "dateOfDeath" : null
  }
}

Create Debitor: D-3101100 - Michelle Matthieu

HTTP POST "/api/hs/office/debitors" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  <<EOF
{
  "debitorRel" : {
    "anchor.uuid" : "53869a92-66f1-4e83-9850-80f2a708f39f", // personUuid
    "holder.uuid" : "53869a92-66f1-4e83-9850-80f2a708f39f", // personUuid
    "contact.uuid" : "8c06e07a-89e5-4b36-8049-09d785e2d47d" // Contact: Michelle Matthieu
  },
  "debitorNumberSuffix" : "00",
  "billable" : true,
  "vatBusiness" : false,
  "vatReverseCharge" : false,
  "defaultPrefix" : "mim"
}
EOF
=> status: 201 CREATED 7c76e045-4a03-471a-ac50-4a3b255824be

generated on 2026-08-10 04:34:21 for branch HEAD